package com.fqy.entity;

public class People {
    //定义的私有属性
    private static int id;
    private static String name;
    private static String sexuality;

    //无参构造器
    public People() {
    }
    //有参构造器
    public People(int id, String name, String sexuality) {
        this.id = id;
        this.name = name;
        this.sexuality = sexuality;
    }

    //getter setter方法
    public static int getId() {
        return id;
    }

    public static String getName() {
        return name;
    }

    public static String getSexuality() {
        return sexuality;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setSexuality(String sexuality) {
        this.sexuality = sexuality;
    }


    @Override
    public String toString() {
        return "people{" +
                "id=" + id +
                ", name=" + name  +
                ", sexuality=" + sexuality +
                '}';
    }
}
